var express = require('express')
var router = express.Router()
const { getAll, getById, exec } = require('../db')

/* GET users listing. */
router.get('/gg_traffic', async function (req, res, next) {
  let sql = `select * from gg_traffic`
  const roads = await getAll(sql)
  res.send({
    code: 1,
    message: '成功',
    result: { roads },
  })
})

module.exports = router
